package com.bkgy.controller.allprocess.controller;


import com.bkgy.controller.allprocess.dto.TbAllpricessIndexTableDto;
import com.bkgy.controller.allprocess.dto.TbAllpricessIndexTableDtoRequst;
import com.bkgy.controller.allprocess.dto.TbAllpricessIndexTableDtoResponse;
import com.bkgy.controller.allprocess.service.AllProcessIndexTableService;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@RequestMapping("/allprocess")
public class AllprocessIndexTableController {

    @Autowired
    private AllProcessIndexTableService allProcessindexTableService;

    @Operation(summary = "全流程成材率模型首页 总成材率表格", description = "全流程成材率模型首页 总成材率表格")
    @PostMapping("/indextable")
    public ResultData<TbAllpricessIndexTableDtoResponse> allprocessIndexTable (@RequestBody @Valid TbAllpricessIndexTableDtoRequst request)
    {
        return allProcessindexTableService.allprocessIndexTable(request);
    }


}
